package com.mmlc.meimei.lichengkongjian.mine;

import android.content.Intent;
import android.widget.RelativeLayout;

import com.handmark.pulltorefresh.library.PullToRefreshListView;
import com.mmlc.businessutils.OrderShowUtils;
import com.mmlc.inter.InterFragment;
import com.mmlc.meimei.lichengkongjian.R;

import butterknife.ButterKnife;
import butterknife.InjectView;

/**
 * Created by Administrator on 2016/7/25 0025.
 */
public class ShopOrderFragment extends InterFragment {
    @InjectView(R.id.pull_refresh_list)
    PullToRefreshListView pullRefreshList;
    @InjectView(R.id.rootView)
    RelativeLayout rootView;

    @Override
    protected int initResourceID() {
        return R.layout.activity_orderlist;
    }

    @Override
    protected void initView() {
        ButterKnife.inject(this, view);
        processData();
    }

    OrderShowUtils showUtils;
    private void processData() {
        showUtils = new OrderShowUtils(this,context, pullRefreshList);
        showUtils.showOrder(5, rootView);
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.reset(this);
    }

    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        OrderShowUtils.detailFinish(requestCode,data,showUtils);
    }


}
